/*
 * @Descripttion:
 * @version: 1.0.0
 * @Author: liuzicheng
 * @Date: 2025-01-22 13:48:44
 * @LastEditors: liuzicheng
 * @LastEditTime: 2025-03-04 16:30:10
 */
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import "virtual:uno.css";
import App from "./App.tsx";
import { Provider } from "mobx-react";
import stores from "./store/index.ts";
window.onload = () => {
  const loadingContainer = document.getElementById("preloading");
  if (loadingContainer) {
    loadingContainer.style.display = "none"; // 隐藏加载动画
  }
};
createRoot(document.getElementById("root")!).render(
  <StrictMode>
    <Provider {...stores}>
      <BrowserRouter>
        <App />
      </BrowserRouter>
    </Provider>
  </StrictMode>
);
